﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using StudentMgmt.DBUtility;
using StudentMgmt.Model.DataContext;
using StudentMgmt.IDAL;
using StudentMgmt.Model;

namespace StudentMgmt.SQLServerDAL
{
    public class RewardLevelsConfig : IRewardConfig
    {
        public RewardLevelsConfig() { }
        public IList<Reward_ConfigInfo> GetRewardConfig()
        {
            StudentMgmtDataContext db = new StudentMgmtDataContext();
            var temp = from m in db.RewardConfig
                       select m;
            return   temp.ToList<Reward_ConfigInfo>();
        }
    }
}
